//
//  GRXSettingItem.h
//  1-MushroomStreet-自定义tabbar
//
//  Created by xmg on 16/1/11.
//  Copyright © 2016年 grx. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    GRXSettingCellTypeNone,//什么也没有
    GRXSettingCellTypeArrow,//带箭头
    GRXSettingCellTypeSwitch,//带switch按钮
    GRXSettingCellTypeLabel//带label
}GRXSettingCellType;


@interface GRXSettingItem : NSObject

/**显示什么文字 */
@property (nonatomic, copy) NSString *title;

/**右边显示的类型*/
@property (nonatomic,assign)GRXSettingCellType type;

/**右边显示什么内容 */
@property (nonatomic, copy) NSString *detail;

/**显示cell的子标题 */
@property (nonatomic, copy) NSString *subTitle;

/**监听cell点击事件 */
@property (nonatomic, copy) void(^action)();


//快速创建model对象(根据传入的icon,title和type)
+ (instancetype)modelWithTitle:(NSString *)title type:(GRXSettingCellType)type;


@end
